package com.usian.myclass.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.myclass.dao.TbClassDao;
import com.usian.myclass.pojo.TbClass;
import com.usian.myclass.service.ClassService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl extends ServiceImpl<TbClassDao, TbClass> implements ClassService {

    @Autowired
    private TbClassDao tbClassDao;

    @Override
    public Object listByCollegeId(int collegeId) {
        LambdaQueryWrapper<TbClass> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TbClass::getCid,collegeId);
        return tbClassDao.selectList(lambdaQueryWrapper);
    }
}
